export interface ResponseData {
  code: number;
  message: string;
  ok: boolean;
}
export interface CategoryObj {
  id: number | string;
  name: string;
  category1Id?: number;
  category2Id?: number;
}

export interface AttrValueObj {
  id?: number | string;
  valueName: string;
  attrId?: number;
  allowEdit?: boolean; //用于控制页面中是查看模式还是编辑模式
}
export interface AttrObj {
  id?: number | string;
  attrName: string;
  categoryId: number;
  categoryLevel: number;
  attrValueList: AttrValueObj[];
}

export interface CategoryResponseData extends ResponseData {
  data: CategoryObj[];
}
export interface AttrResponseData extends ResponseData {
  data: AttrObj[];
}
